package com.sgcc.system.api;

import com.sgcc.common.core.constant.ServiceNameConstants;
import com.sgcc.common.core.domain.R;
import com.sgcc.common.core.web.domain.AjaxResult;
import com.sgcc.system.api.domain.OMonTar;
import com.sgcc.system.api.factory.RemoteOMonTarFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 异常监控
 *
 * @author sgcc
 */
@FeignClient(contextId = "remoteOMonTarService", value = ServiceNameConstants.ACTIVITI_SERVICE, fallbackFactory = RemoteOMonTarFallbackFactory.class)
public interface RemoteOMonTarService
{
    /**
     * 插入
     *
     * @param code 异常监控
     * @return 结果
     */
    @GetMapping(value = "/indexMonitor/findCode")
    public R<OMonTar> findCode(@RequestParam("code") String code);
    
    @PostMapping(value = "/indexMonitor/editStatus")
	public AjaxResult editStatus(@RequestParam("monTarCode") String monTarCode, @RequestParam("monStatus") String monStatus);


    /**
     * 更新流程状态
     *
     * @return 结果
     */
    @GetMapping(value = "/OContentAdSchema/updateStatus")
    public AjaxResult updateStatus();
}
